﻿<%@ Page Language="C#" MasterPageFile="~/admin/Admin.master" AutoEventWireup="true" CodeFile="SuaMT.aspx.cs" Inherits="admin_SuaMT" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <form id="form1" runat="server">
    <table style="width:100%;">
        <tr>
             <td width="30%">
                <asp:Label ID="Label9" runat="server" Text="Mã Máy"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtMaMay" runat="server" Width="209px" Enabled="False"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td width="30%">
                <asp:Label ID="Label1" runat="server" Text="Tên Máy"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtTenMay" runat="server" Width="209px"></asp:TextBox>
                (*)<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtTenMay" ErrorMessage="Nhập tên máy!"></asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label2" runat="server" Text="Giá Bán"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtGiaBan" runat="server" Width="208px"></asp:TextBox>
                (*)<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txtGiaBan" ErrorMessage="Nhập giá bán!"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeValidator2" runat="server" 
                    ControlToValidate="txtGiaBan" ErrorMessage="Giá bán sai!" 
                    MaximumValue="10000000" MinimumValue="1000" Type="Double"></asp:RangeValidator></td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label3" runat="server" Text="Số Lượng"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtSoLuong" runat="server" Width="207px"></asp:TextBox>
                (*)<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="txtSoLuong" ErrorMessage="Nhập số lượng!"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeValidator1" runat="server" 
                    ControlToValidate="txtSoLuong" ErrorMessage="Số lượng sai!" 
                    MaximumValue="10000000" MinimumValue="1" Type="Integer"></asp:RangeValidator></td>
        </tr>
        <tr>
            <td class="style1" style="height: 36px">
                <asp:Label ID="Label4" runat="server" Text="Mã Hảng SX"></asp:Label>
            </td>
            <td class="style1" style="height: 36px">
                <asp:DropDownList ID="ddlMaHangSX" runat="server" Height="32px" Width="120px">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label5" runat="server" Text="Mô Tả"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtMoTa" runat="server" Width="264px" TextMode="MultiLine" 
                    Height="115px"></asp:TextBox>
                (*)<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ControlToValidate="txtMoTa" ErrorMessage="Nhập mô tả!"></asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label6" runat="server" Text="Loại Máy Tính"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="DDLLoaiMayTinh" runat="server" Height="22px" 
                    Width="118px">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label7" runat="server" Text="Hình Ảnh"></asp:Label>
            </td>
            <td>
                <asp:FileUpload ID="UpLoadHinhAnh" runat="server" Width="208px" />
            </td>
        </tr>
        <tr>
            <td style="height: 24px">
                <asp:Label ID="Label8" runat="server" Text="Hiển Thị"></asp:Label>
            </td>
            <td style="height: 24px">
                <asp:RadioButton ID="rbCo" runat="server" Text="Có" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:RadioButton ID="rbKhong" runat="server" Text="Không" />
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                <asp:Button ID="btSave" runat="server" onclick="btSave_Click1" Text="Save" 
                    Width="82px" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="btCancel" runat="server" Text="Cancel" Width="90px" 
                    onclick="btCancel_Click" />
            </td>
        </tr>
    </table>
    </form>
</asp:Content>

